package com.jetinno.utils;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * Created by zhangyuncai on 2021/10/16.
 */
public abstract class SimpleTextWatcher implements TextWatcher {
    @Override
    public void afterTextChanged(Editable s) {

    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
        textChange(s == null ? "" : s + "");
    }

    public abstract void textChange(String content);
}
